﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ScoreManage.aspx.cs" Inherits="StudentManagerPro.Score.ScoreManage" %>

<%@ Register Src="~/UserControls/Query.ascx" TagPrefix="uc1" TagName="Query" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <link href="../Styles/ScoreManage.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="QueryDiv">
        请选择要查询的班级：<asp:DropDownList ID="ddlClass" Width="120px" runat="server">
        </asp:DropDownList>
        &nbsp;
        <asp:Button ID="btnQuery" runat="server" Text="提交查询" OnClick="btnQuery_Click"  />
    &nbsp;
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="导出到Excel" />

        <a href="/Handlers/ExportExcel.ashx?className=软件一班">导Excel到</a>
        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="下载文件" />
    </div>
        <asp:Literal ID="ltaMsg" runat="server"></asp:Literal>
    <%--<uc1:Query runat="server" ID="Query" />--%>
    <div id="ScoreListDiv">     

        <asp:GridView ID="gvScoreList" class="ScoreTable" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvScoreList_RowDataBound">
            <Columns>
                <asp:BoundField DataField="StudentName" HeaderText="学员姓名" />
                <asp:BoundField DataField="Gender" HeaderText="性别" />
                <asp:BoundField DataField="ClassName" HeaderText="所在班级" />
                <asp:BoundField DataField="CSharp" HeaderText="C#成绩" />
                <asp:BoundField DataField="SQLServerDB" HeaderText="数据库成绩" />
                <asp:HyperLinkField DataNavigateUrlFields="StudentId" DataNavigateUrlFormatString="~/Student/StudentDetail.aspx?Studentid={0}" 
                    HeaderText="学员详细信息" Text="详细信息" />
            </Columns>
        </asp:GridView>

<%--	    <table class="ScoreTable" cellspacing="0" rules="all" border="1" id="ContentPlaceHolder1_gvScoreList" style="border-collapse:collapse;">
		    <tr>
			    <th scope="col">学员姓名</th><th scope="col">性别</th><th scope="col">所在班级</th><th scope="col">C#成绩</th><th scope="col">数据库成绩</th><th scope="col">学员信息</th>
		    </tr>
            <tr onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor=&#39;#6699ff&#39;" onmouseout="this.style.backgroundColor=currentcolor">
			    <td>王小虎</td><td>男</td><td>软件1班</td><td>60</td><td>78</td><td><a href="../Student/StudentDetail.aspx?StudentId=100000" target="_blank">详细信息</a></td>
		    </tr>
            <tr onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor=&#39;#6699ff&#39;" onmouseout="this.style.backgroundColor=currentcolor">
			    <td>杜小丽</td><td>女</td><td>软件1班</td><td>62</td><td>88</td><td><a href="../Student/StudentDetail.aspx?StudentId=100004" target="_blank">详细信息</a></td>
		    </tr>
            <tr onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor=&#39;#6699ff&#39;" onmouseout="this.style.backgroundColor=currentcolor">
			    <td>李铭</td><td>男</td><td>软件1班</td><td>91</td><td>66</td><td><a href="../Student/StudentDetail.aspx?StudentId=100007" target="_blank">详细信息</a></td>
		    </tr>
	    </table>--%>
    </div>

</asp:Content>
